using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace MaskData
{
	public class StringCondition : ConditionElement
	{
		private String _value;
		public StringCondition(String name, ConditionOperator op, String value)
			: base(name, op)
		{
			_value = value;
		}
		public override String GetSQLString()
		{
			return _fieldName + _Op.GetSQLString() + " '" + _value + "'";
		}
	}

	public class IntCondition : ConditionElement
	{
		private Int32 _value;
		public IntCondition(String name, ConditionOperator op, Int32 value)
			: base(name, op)
		{
			_value = value;
		}
		public override String GetSQLString()
		{
			return _fieldName + _Op.GetSQLString() + _value;
		}
	}

	public class BoolCondition : ConditionElement
	{
		private bool _value;
		public BoolCondition(String name, ConditionOperator op, bool value)
			: base(name, op)
		{
			_value = value;
		}
		public override String GetSQLString()
		{
			return _fieldName + _Op.GetSQLString() + _value;
		}
	}

}
